\hypertarget{class_thread_3_01_any_01_4}{\section{Thread$<$ Any $>$ Class Template Reference}
\label{class_thread_3_01_any_01_4}\index{Thread$<$ Any $>$@{Thread$<$ Any $>$}}
}


{\ttfamily \#include $<$Thread.\-hpp$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename Function $>$ }\\\hyperlink{class_thread_3_01_any_01_4_a2cd3360c2f6172a36c9a24286c810ae7}{Thread} (const std\-::string \&name, Function function)
\item 
\hyperlink{class_thread_3_01_any_01_4_a150afd8994beeb060708cafacff23474}{$\sim$\-Thread} ()
\item 
void \hyperlink{class_thread_3_01_any_01_4_af759d6a9dee31f5d84008a66e6d61fbe}{Start} ()
\item 
{\footnotesize template$<$typename Arg0 $>$ }\\void \hyperlink{class_thread_3_01_any_01_4_aa9050a7a4ddcd7e8c07b6989ef3cc3d8}{Start} (Arg0 arg0)
\item 
{\footnotesize template$<$typename Arg0 , typename Arg1 $>$ }\\void \hyperlink{class_thread_3_01_any_01_4_a198c9d72a4cb273e22e9a7f031571033}{Start} (Arg0 arg0, Arg1 arg1)
\item 
{\footnotesize template$<$typename Arg0 , typename Arg1 , typename Arg2 $>$ }\\void \hyperlink{class_thread_3_01_any_01_4_a676bf1202939d29260248d21b90f4507}{Start} (Arg0 arg0, Arg1 arg1, Arg2 arg2)
\item 
\hypertarget{class_thread_3_01_any_01_4_aefa5b180dfb284f16b942b43cc337ba7}{bool {\bfseries Get\-Is\-Suspended} ()}\label{class_thread_3_01_any_01_4_aefa5b180dfb284f16b942b43cc337ba7}

\item 
\hypertarget{class_thread_3_01_any_01_4_a7f77bf577cd97782c195fdba8341a0fe}{bool {\bfseries Stop} ()}\label{class_thread_3_01_any_01_4_a7f77bf577cd97782c195fdba8341a0fe}

\item 
\hypertarget{class_thread_3_01_any_01_4_a006daeefb7a713046b83af7e51c520a0}{bool {\bfseries Suspend} ()}\label{class_thread_3_01_any_01_4_a006daeefb7a713046b83af7e51c520a0}

\item 
\hypertarget{class_thread_3_01_any_01_4_a16b8e780a548bce7ac9cf0ccfe2ab2ea}{bool {\bfseries Resume} ()}\label{class_thread_3_01_any_01_4_a16b8e780a548bce7ac9cf0ccfe2ab2ea}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$$>$class Thread$<$ Any $>$}

The \hyperlink{class_thread_3_01_any_01_4}{Thread$<$\-Any$>$} class is an easy to use class that lets you launch a function on a seperate thread.

\hyperlink{struct_any}{Any} function can be taken in the constructor, but you must make sure the argument count and types passed to Start match those of the given function. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_thread_3_01_any_01_4_a2cd3360c2f6172a36c9a24286c810ae7}{\index{Thread$<$ Any $>$@{Thread$<$ Any $>$}!Thread@{Thread}}
\index{Thread@{Thread}!Thread< Any >@{Thread$<$ Any $>$}}
\subsubsection[{Thread}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Function $>$ {\bf Thread}$<$ {\bf Any} $>$\-::{\bf Thread} (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name, }
\item[{Function}]{function}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_thread_3_01_any_01_4_a2cd3360c2f6172a36c9a24286c810ae7}
Constructor for \hyperlink{class_thread_3_01_any_01_4}{Thread$<$\-Any$>$}.


\begin{DoxyTemplParams}{Template Parameters}
{\em Function} & The type of the function. (C++ can infer the correct type automatically if you don't specify.) \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em name} & The name of the thread. \\
\hline
{\em function} & The function to be run by this \hyperlink{class_thread}{Thread}. \\
\hline
\end{DoxyParams}
\hypertarget{class_thread_3_01_any_01_4_a150afd8994beeb060708cafacff23474}{\index{Thread$<$ Any $>$@{Thread$<$ Any $>$}!$\sim$\-Thread@{$\sim$\-Thread}}
\index{$\sim$\-Thread@{$\sim$\-Thread}!Thread< Any >@{Thread$<$ Any $>$}}
\subsubsection[{$\sim$\-Thread}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Thread}$<$ {\bf Any} $>$\-::$\sim${\bf Thread} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_thread_3_01_any_01_4_a150afd8994beeb060708cafacff23474}
Destructor for \hyperlink{class_thread_3_01_any_01_4}{Thread$<$\-Any$>$}. 

\subsection{Member Function Documentation}
\hypertarget{class_thread_3_01_any_01_4_af759d6a9dee31f5d84008a66e6d61fbe}{\index{Thread$<$ Any $>$@{Thread$<$ Any $>$}!Start@{Start}}
\index{Start@{Start}!Thread< Any >@{Thread$<$ Any $>$}}
\subsubsection[{Start}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf Thread}$<$ {\bf Any} $>$\-::Start (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_thread_3_01_any_01_4_af759d6a9dee31f5d84008a66e6d61fbe}
Start the \hyperlink{class_thread}{Thread}.

This overlaod passes no arguments. \hypertarget{class_thread_3_01_any_01_4_aa9050a7a4ddcd7e8c07b6989ef3cc3d8}{\index{Thread$<$ Any $>$@{Thread$<$ Any $>$}!Start@{Start}}
\index{Start@{Start}!Thread< Any >@{Thread$<$ Any $>$}}
\subsubsection[{Start}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Arg0 $>$ void {\bf Thread}$<$ {\bf Any} $>$\-::Start (
\begin{DoxyParamCaption}
\item[{Arg0}]{arg0}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_thread_3_01_any_01_4_aa9050a7a4ddcd7e8c07b6989ef3cc3d8}
Start the \hyperlink{class_thread}{Thread}.


\begin{DoxyTemplParams}{Template Parameters}
{\em Arg0} & The type of the first argument. (C++ can infer the correct type automatically if you don't specify.) \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em arg0} & The first argument. \\
\hline
\end{DoxyParams}
\hypertarget{class_thread_3_01_any_01_4_a198c9d72a4cb273e22e9a7f031571033}{\index{Thread$<$ Any $>$@{Thread$<$ Any $>$}!Start@{Start}}
\index{Start@{Start}!Thread< Any >@{Thread$<$ Any $>$}}
\subsubsection[{Start}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Arg0 , typename Arg1 $>$ void {\bf Thread}$<$ {\bf Any} $>$\-::Start (
\begin{DoxyParamCaption}
\item[{Arg0}]{arg0, }
\item[{Arg1}]{arg1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_thread_3_01_any_01_4_a198c9d72a4cb273e22e9a7f031571033}
Start the \hyperlink{class_thread}{Thread}.


\begin{DoxyTemplParams}{Template Parameters}
{\em Arg0} & The type of the first argument. (C++ can infer the correct type automatically if you don't specify.) \\
\hline
{\em Arg1} & The type of the second argument. (C++ can infer the correct type automatically if you don't specify.) \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em arg0} & The first argument. \\
\hline
{\em arg1} & The second argument. \\
\hline
\end{DoxyParams}
\hypertarget{class_thread_3_01_any_01_4_a676bf1202939d29260248d21b90f4507}{\index{Thread$<$ Any $>$@{Thread$<$ Any $>$}!Start@{Start}}
\index{Start@{Start}!Thread< Any >@{Thread$<$ Any $>$}}
\subsubsection[{Start}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Arg0 , typename Arg1 , typename Arg2 $>$ void {\bf Thread}$<$ {\bf Any} $>$\-::Start (
\begin{DoxyParamCaption}
\item[{Arg0}]{arg0, }
\item[{Arg1}]{arg1, }
\item[{Arg2}]{arg2}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_thread_3_01_any_01_4_a676bf1202939d29260248d21b90f4507}
Start the \hyperlink{class_thread}{Thread}.


\begin{DoxyTemplParams}{Template Parameters}
{\em Arg0} & The type of the first argument. (C++ can infer the correct type automatically if you don't specify.) \\
\hline
{\em Arg1} & The type of the second argument. (C++ can infer the correct type automatically if you don't specify.) \\
\hline
{\em Arg2} & The type of the third argument. (C++ can infer the correct type automatically if you don't specify.) \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em arg0} & The first argument. \\
\hline
{\em arg1} & The second argument. \\
\hline
{\em arg2} & The third argument. \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
C\-:/\-Users/\-Sam/\-Projects/\-F\-R\-C/\-Libraries/\-Fpk/\-Entech-\/\-Fpk-\/\-Subscribers/\-Entech-\/\-Fpk/Thread.\-hpp\item 
C\-:/\-Users/\-Sam/\-Projects/\-F\-R\-C/\-Libraries/\-Fpk/\-Entech-\/\-Fpk-\/\-Subscribers/\-Entech-\/\-Fpk/Thread.\-cpp\end{DoxyCompactItemize}
